<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<div id="test">123</div>
<p>qwe</p>
<div id="kk">zxc</div>

<script type="text/javascript" src="../sai.js"></script>
<script type="text/javascript">
var obj1 = sai.getPreviousNode(document.getElementById("kk"), "div")
var obj = sai.getNextNode(document.getElementById("test"), "A");
alert(obj1.innerHTML);

</script>
</body>
</html>